﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Gman.WebApp.Models.DocumentoModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <script src="../../Scripts/Binding/Documento.js" type="text/javascript"></script>


   <script type="text/javascript">
        var guid = "<%= Model.ID.ToString()%>";
        var action = "<%= Model.Action.ToString()%>";

        $(document).ready(function() {
            SetupControls();
            SetupActions();
        });     
       
    </script>


<div style="margin-top:5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight" style="height:50px;">
             <b> Registro de Activos </b>
             <% Html.RenderPartial("ToolBar", Model.ToolBar); %>    
             
        </div>
    </div>
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>
        <div class="DataBottomRight">
        </div>
    </div>
</div>

  <div class="DataContent">
        <div class="DataContentRight">
        <div class="DataTable">
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            
            <table>
            <tr>
             <td style="width:100px">
                    <div class="editor-label" style="float:right">
                        N° Documento
                    </div>
                </td>
                <td >
                    <div >
                         <%= Html.TextBoxFor(model => model.Documento.CodDocumento, new { style = "width: 90px;", propertyname = "CodDocumento", ID = "Documento_CodDocumento" })%>
                    
                        <img id="btnBuscar" src="../../_Images/Search-icon-16.png"  alt="Buscar bien" style="cursor:pointer;"/>
                    </div>
                </td>   

               
                
                <td >
                    <div class="editor-label" style="float:right">
                       Titulo Documento
                    </div>
                </td>
                <td colspan="6" >
                    <div >
                         <%= Html.TextBoxFor(model => model.Documento.TituDoc, new { style = "width: 500px;", propertyname = "TituDoc" })%>
                    </div>
                </td> 
            </tr>
            
            
            <tr>
            
              <td >
                    <div class="editor-label" style="float:right">
                       Descripcion del <br/> Documento
                    </div>
            </td>
            <td  colspan="7">
                    <div >
                         <%= Html.TextAreaFor(model => model.Documento.DescDoc, new { style = "width: 800px;", propertyname = "DescDoc" })%>
                    </div>
                </td> 
            
            </tr>
            
            <tr>
              <td >
                    <div class="editor-label" style="float:right">
                      Tipo de Doc.
                    </div>
            </td>
            <td >
                    <div >
             <%= Html.DropDownListFor(model => model.Documento.TipoDoc, Model.TipoDoc,new { style = "width: 150px;", propertyname = "TipoDoc" })%>                                            </div>
            </td> 
            
            
              <td >
                    <div class="editor-label" style="float:right">
                       Fecha de Emision
                    </div>
            </td>
            <td >
                    <div >
                    <%= Html.TextBoxFor(model => model.Documento.FecEmision, new { @class = "date", id = "FecEmision", @readonly = true, style ="Width:100px;" })%>
                               </div>
                </td> 
            
            
             <td >
                    <div class="editor-label" style="float:right">
                     Asociado a
                    </div>
            </td>
            <td >
                    <div >
             <%= Html.DropDownListFor(model => model.Documento.TipoDoc, Model.TipoAsoc,new { style = "width: 150px;", propertyname = "TipoDoc" })%>                                            </div>
            </td> 
            
            
              <td >
                    <div class="editor-label" style="float:right">
                       ID Asociado
                    </div>
            </td>
            <td >
                    <div >
  <%= Html.TextBoxFor(model => model.Documento.NroOpeRefe, new { style = "width: 150px;", propertyname = "NroOpeRefe" })%>

                               </div>
                </td> 
           
          
            </tr>
            
            
            <tr>
                 <td >
                    <div class="editor-label" style="float:right">
                      Ruta Archivo
                    </div>
            </td>
            <td colspan="6">
                    <div >
                  <%= Html.HiddenFor(model => model.Documento.RutaArch, new { propertyname = "RutaArch" }) %>
                      <input type="file" id="upload" name="upload" style = "width: 650px;" />
                               </div>
                </td> 
            
            </tr>
            
            
            
            </table>
            
           
         
        </fieldset>

    <% } %>
</div></div></div>




    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>


</asp:Content>

